#include "log.h"

Log::Log()
{

}

void Log::init(Ui::MainWindow *ui)
{
    this->ui = ui;
}

void Log::show(QString str)
{
    ui->statusBar->showMessage(str);
    qDebug() << str;
    ui->textEditLog->append(str);
    ui->textEditLog->moveCursor(QTextCursor::End);
}
